
<div class="side_body">
   	 <h2><?php echo __("Wyszukaj klienta")?></h2>
		<?php echo $this->Form->create('Agent', array('url' => array('controller'=>'manager', 'action' =>'find')));?>
		<table>
			<tr>
				<td align="left">
					<?php echo $this->Form->input('TerminalCustomer.phone', array('label'=>false));?>
				</td>
				<td align="right">
					<input name="" type="image" src="/img/terminal.cake/24_find.png" title="<?php echo __("Kliknij by wyszukac klienta",true)?>"/>
				</td>
			</tr>
		</table>
		<?php echo $this->Form->end();?>

</div>

<div class="side_body">
	 <h2><?php echo __("Analiza wg pracownika")?></h2>
	<?php echo $this->Form->create('Administrator', array('url' => array('controller'=>'manager', 'action' =>'index')));?>
	<table>
		<tr>
			<td align="left">
				<?php echo $form->input('Administrator.curent_emploi', 
					array('options' => $emplo,'empty'=>array("wszyscy"=>__("Wszyscy pracownicy",true)),
						'value'=>$session->read('Administrator.curent_emploi'),'label'=>false)); ?>
			</td>
			<td align="right">
				<input name="" type="image" src="/img/terminal.cake/24_user.png" title="<?php echo __("Kliknij by wybrac agenta",true)?>"/>
			</td>
		</tr>
		<?php if(isset($emploi_info) && !empty($emploi_info)){?>
		<tr>
			<td colspan="2">
				<?php echo $this->element("users".DIRECTORY_SEPARATOR."emploi_info")?>
			</td>
		</tr>
		<?php }?>
	</table>
	<?php echo $this->Form->end();?>
</div>

<div class="side_body">
	<?php echo $html->link(__("Lista klientow - zaplanowane",true),
		array('action'=>'zaplanowane'),array('class'=>'menu_left '.(($this->params['action']=='zaplanowane')?'zaplanowane_on':'zaplanowane')))?>
	<?php echo $html->link(__("Lista klientow - odroczone",true),
		array('action'=>'odroczone'),array('class'=>'menu_left '.(($this->params['action']=='odroczone')?'odroczone_on':'odroczone')))?>
	<?php echo $html->link(__("Lista klientow - umowione",true),
		array('action'=>'umowione'),array('class'=>'menu_left '.(($this->params['action']=='umowione')?'umowione_on':'umowione')))?>
	<?php echo $html->link(__("Lista klientow - sfinalizowane",true),
		array('action'=>'sfinalizowane'),array('class'=>'menu_left '.(($this->params['action']=='sfinalizowane')?'sfinalizowane_on':'sfinalizowane')))?>
	<?php echo $html->link(__("Lista klientow - odrzucone",true),
		array('action'=>'odrzucone'),array('class'=>'menu_left '.(($this->params['action']=='odrzucone')?'odrzucone_on':'odrzucone')))?>
	<?php echo $html->link(__("Lista klientow - wolne",true),
		array('action'=>'wolne'),array('class'=>'menu_left '.(($this->params['action']=='wolne')?'wolne_on':'wolne')))?>	
	<?php echo $html->link(__("Lista klientow - wszystkie",true),
		array('action'=>'index'),array('class'=>'menu_left '.(($this->params['action']=='index')?'on':'')))?>
</div>

<div class="side_body">
	<?php echo $html->link(__("Lista agentow/technikow",true),
		array('action'=>'employees'),array('class'=>'menu_left '.(($this->params['action']=='employees' || $this->params['action']=='add_employee' || $this->params['action']=='edit_employee')?'on':'')))?>
	<?php echo $html->link(__("Rozliczenia",true),
		array('action'=>'admin_rozliczenia'),array('class'=>'menu_left '.(($this->params['action']=='admin_rozliczenia')?'on':'')))?>		
</div>

<div class="clr"></div>	